//
// Created on 2025/6/6.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#ifndef UDP_NATIVE_UDP_H
#define UDP_NATIVE_UDP_H

#include "queue.h"

char* recv_udp_data(int socket, int* recv_len);

Message* recv_udp_data_queue(int socket);

int send_udp_data(char* ip, int port, char* data, int data_len);

int send_udp(int socket, char *ip, int port,  char* data, int data_len);

int create_udp(int port);

int close_udp(int socket);

#endif //UDP_NATIVE_UDP_H
